package com.qualityevaluationclouduser.repository;

import com.qualityevaluationclouduser.entity.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: qualityEvaluationCloudProject
 * @class: UserInfoRepository
 * @description: 用户信息仓库
 * @author:
 * @create:
 **/
@Repository
public interface UserInfoRepository extends JpaRepository<UserInfo, Long>, JpaSpecificationExecutor<UserInfo> {
    UserInfo findUserInfoByUsername(String userName);

    boolean existsUserInfoByUseraccount(String userAccount);

    //根据id批量删除
    void deleteUsersByIdIn(List<Long> idList);
}
